package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

/*
 * 키를 입력받아 표준체중을 계산, 사용자의 체중과 비교하여 저체중,표준,과체중 판단
 * 표준체중 = (키-100) * 0.9
 */
public class Programming3 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);

		System.out.print("키를 입력하시오: ");
		double height = input.nextDouble();
		double standardWeight = (height - 100) * 0.9;

		System.out.print("몸무게를 입력하시오: ");
		double myWeight = input.nextDouble();
		if (myWeight > standardWeight) {
			System.out.println("과체중");
		}

		else if (myWeight < standardWeight) {
			System.out.println("저체중");
		}

		else {
			System.out.println("표준");
		}
	}
}
